home *** CD-ROM | disk | FTP | other *** search
- #VRML V2.0 utf8
-
-
-
- EXTERNPROTO Toss [
- field MFNode objectShape
- exposedField SFTime cycleInterval
- exposedField SFTime startTime
- exposedField SFTime stopTime
- exposedField SFBool enabled
- exposedField SFBool loop
- exposedField MFFloat key
- exposedField MFVec3f keyValue
- ] "Toss.wrl"
-
-
- Background {
- leftUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_left.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_left.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_left.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_left.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_left.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_left.jpg"
- ]
- rightUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_right.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_right.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_right.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_right.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_right.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_right.jpg"
- ]
- frontUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_front.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_front.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_front.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_front.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_front.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_front.jpg"
- ]
- backUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_back.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_back.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_back.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_back.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_back.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_back.jpg"
- ]
- topUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_top.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_top.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_top.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_top.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_top.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_top.jpg"
- ]
- bottomUrl [
- # "urn:web3d:media:textures/panoramas/horizon_5_bottom.jpg"
- "http://www.web3d.org/WorkingGroups/media/textures/panoramas/horizon_5_bottom.jpg"
- "http://www.web3dmedia.com/UniversalMedia/textures/panoramas/horizon_5_bottom.jpg"
- "http://www.officetowers.com/UniversalMedia/textures/panoramas/horizon_5_bottom.jpg"
- "http://geometrek.com/UniversalMedia/textures/panoramas/horizon_5_bottom.jpg"
- "http://www.sc.ehu.es/ccwgamoa/UniversalMedia/textures/panoramas/horizon_5_bottom.jpg"
- ]
- }
-
-
- DEF VP Viewpoint {
- description "Watcher"
- position 1 1 7
- }
-
-
- # Insert VRML name
-
- DEF VRML Transform {
- children [
- DEF Touch TouchSensor {}
- Inline {url "vrml-logoOnly.wrl"}
- ]
- }
-
-
- # Insert X3D name (out of visibile way)
-
- DEF X3D Transform {
- translation 0 6 0
- scale .4 .4 .4
- children Transform {
- translation 0 1 0
- children Inline {
- url "x3d-logoOnly.wrl"
- }
- }
- }
-
-
- # Insert the moving shapes
-
- Transform {
- translation 3.5 0 0
- children [
- Toss {
- objectShape [
- Transform {
- translation -1 0 0
- rotation .71 0 .71 .5
- children [
- Shape {
- appearance Appearance {
- material Material {
- diffuseColor 1 0 0
- }
- }
- geometry Box {
- size .7 .7 .7
- }
- }
- ]
- }
- ]
- cycleInterval 3
- enabled TRUE
- loop TRUE
- startTime 1
- }
-
-
- Toss {
- objectShape [
- Transform {
- translation .2 .2 0
- children [
- Shape {
- appearance Appearance {
- material Material {
- diffuseColor 0 .8 0
- }
- }
- geometry Sphere {
- radius .4
- }
- }
- ]
- }
- ]
- cycleInterval 5
- enabled TRUE
- loop TRUE
- startTime 1
- }
-
- Toss {
- objectShape [
- Transform {
- translation 1 0 0
- rotation .71 0 .71 -.40
- children [
- Shape {
- appearance Appearance {
- material Material {
- diffuseColor 0 0 1
- }
- }
- geometry Cone {
- bottomRadius .4
- height .7
- }
- }
- ]
- }
- ]
- cycleInterval 4
- enabled TRUE
- loop TRUE
- startTime 1
- }
- ]
- }
-
-
- DEF Timer TimeSensor {
- cycleInterval 3.5
- startTime 0
- stopTime 0
- loop FALSE
- enabled TRUE
- }
- DEF X3D_Mover PositionInterpolator {
- key [0 .22 .45 .53 .62 .71 .79 .85 .9 .95 1]
- keyValue [0 6 0, 0 3.5 0, 0 1 0, 0 2.25 0, 0 3.5 0, 0 2.25 0, 0 .75 0, 0 1.5 0, 0 2.2 0, 0 1.5 0, 0 .5 0]
- }
- DEF X3D_Spiner OrientationInterpolator {
- key [0 .45 .79 1]
- keyValue [0 1 0 -.5, 0 1 0 .5, 0 1 0 -.25, 0 1 0 0]
- }
- DEF VRML_Mover PositionInterpolator {
- key [0 .45 .47 .79 .81 .98 1]
- keyValue [0 0 0, 0 0 0, 0 -.1 0, 0 -.1 0, 0 -.25 0, 0 -.25 0, 0 -.5 0]
- }
- DEF VRML_Scaler PositionInterpolator {
- key [0 .45 .47 .79 .81 .98 1]
- keyValue [1 1 1, 1 1 1, 1 .95 1, 1 .95 1, 1 .88 1, 1 .88 1, 1 .75 1]
- }
-
-
- ROUTE Touch.touchTime TO Timer.startTime
- ROUTE Timer.fraction_changed TO X3D_Mover.set_fraction
- ROUTE Timer.fraction_changed TO X3D_Spiner.set_fraction
- ROUTE Timer.fraction_changed TO VRML_Mover.set_fraction
- ROUTE Timer.fraction_changed TO VRML_Scaler.set_fraction
- ROUTE X3D_Mover.value_changed TO X3D.translation
- ROUTE VRML_Mover.value_changed TO VRML.translation
- ROUTE VRML_Scaler.value_changed TO VRML.scale
- ROUTE X3D_Spiner.value_changed TO X3D.rotation
-
-
- DEF TimerVP TimeSensor {
- cycleInterval 4.5
- startTime 0
- stopTime 0
- loop FALSE
- enabled TRUE
- }
- DEF VP_Orientation OrientationInterpolator {
- key [0 .7 1]
- keyValue [0 1 0 0, 0 1 0 0, 0, -1, 0, 0.25]
- }
- DEF VP_Position PositionInterpolator {
- key [0 .7 1]
- keyValue [1 1 7, 1 1 7, -0.79 1 7.027]
- }
- ROUTE Touch.touchTime TO TimerVP.startTime
- ROUTE TimerVP.fraction_changed TO VP_Orientation.set_fraction
- ROUTE TimerVP.fraction_changed TO VP_Position.set_fraction
- ROUTE VP_Orientation.value_changed TO VP.orientation
- ROUTE VP_Position.value_changed TO VP.position
-